;
(function (angular) {
  angular.module('app')
    .config(['$routeProvider', function ($routeProvider) {
      $routeProvider
        .when('/list/:category/:page?', {
          templateUrl: 'app/in_theaters/view.html',
          controller: 'ListController'
        })
        .when('/subject/:id', {
          templateUrl: 'app/subject/view.html',
          controller: 'SubjectController'
        })
        .otherwise({
          redirectTo: '/list/in_theaters'
        })
    }])
})(angular)
